<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>新增竞价单</title>
		<meta name="viewport" content="width=device-width,height=device-height, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta name="renderer" content="webkit" />
		<meta name="aplus-xplug" content="NONE">
		<link rel="stylesheet" type="text/css" href="/static/layui/css/layui.css" />
		<link rel="stylesheet" type="text/css" href="/static/iconfont/iconfont.css" />
		<link rel="stylesheet" type="text/css" href="/static/layui/css/modules/admin/default/admin.css" />
		<link rel="stylesheet" type="text/css" href="/static/css/new_layui.css" />
		<link rel="stylesheet" type="text/css" href="/static/css/default.css" />
		<script>
			var upload_bjd ='',
				member_id = 193;
		</script>
		<script type="text/javascript" charset="utf-8" src="/static/layui/layui.js"></script>
		
		<script type="text/javascript" charset="utf-8" src="/static/js/index.js"></script>
		<style>
			#shopping_list{color: #3c3c3c;}
			#shopping_list .layui-form-radio{
				padding-left: 20px;
				display: block;
			}
			#shopping_list .layui-form-radioed{
				border: 1px solid #119fff;
				background-color: #D9EDF7;
				margin: 5px 0 7px;
				-webkit-box-shadow: 5px 5px 0 #f3f3f3;
				box-shadow: 5px 5px 0 #f3f3f3;
				
				}
			#shopping_list .layui-form-radioed div{font-size: 16px;font-weight: bold; line-height: 36px;}
			#shopping_list .phone{font-weight: 700; font-size: 16px; color: grey;}

		</style>
	</head>

	<body class="default">
		<div style="margin: 30px 20px;">
			<form class="layui-form" lay-filter="tpl_order" action="{:url('order/saveData')}">
				<div class="layui-form-item">
					<label class="layui-form-label">订单号</label>
					<div class="layui-input-inline">
						<input type="hidden" name="is_jingjia" value="1" />
						<input name="out_order_no" lay-verify="required" type="text" class="layui-input" onkeyup="this.value=this.value.replace(/[, ]/g,'')"/>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">来源</label>
					<div class="layui-input-inline">
						<input name="hezuodanwei" type="text" class="layui-input" onkeyup="this.value=this.value.replace(/[, ]/g,'')"/>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">收货地址</label>
					<div class="layui-input-block">
						<blockquote class="layui-elem-quote layui-quote-nm">
							<div id="shopping_list">
							</div>
							<a type="button" id="add_shopping" data-title="新增配送地址" class="layui-btn layui-btn-normal layui-btn-sm"><i class="layui-icon layui-icon-add-1"></i>新增配送地址</a>
						</blockquote>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">订单商品</label>
					<div class="layui-input-block">
						<input type="hidden" name="goods_skus" value="" />
					<table class="layui-hide" id="goods_list" lay-filter="goods_list"></table>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">订单金额</label>
					<div class="layui-input-inline text-price" id="order_price">
						0
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">支付方式</label>
					<div class="layui-input-inline">
						 <input type="radio" name="pay_type" value="1" title="货到付款">
						 <input type="radio" name="pay_type" checked="" value="9" title="延期支付">
					</div>
				</div>
				<div class="layui-form-item" style="display: none;">
					<label class="layui-form-label">发票信息</label>
					<div class="layui-input-block">
						 <input type="radio" name="is_invoice" lay-filter="is_invoice" value="2" checked="" title="独立开票">
						 <input type="radio" name="is_invoice" lay-filter="is_invoice" value="3" title="统一开票">
					</div>
				</div>
				<div class="layui-form-item" id="invoice_info">
					<label class="layui-form-label">开票信息</label>
					<div class="layui-input-block">
						<blockquote class="layui-elem-quote layui-quote-nm">
							<div class="layui-form-item">
								<label class="layui-form-label">发票类型</label>
								<div class="layui-input-inline">
									<input type="radio" name="invoice_type" lay-filter="invoice_type" value="1" checked="" title="普通发票">
							 	
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">发票抬头</label>
								<div class="layui-input-inline">
									<input name="invoice_title" type="text" class="layui-input" value="军队自行采购" />
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">税号</label>
								<div class="layui-input-inline">
									<input name="invoice_duty" type="text" class="layui-input" value="" />
								</div>
							</div>
						
						</blockquote>
					</div>
				</div>
				<div class="layui-form-item" style="display: none;">
					<label class="layui-form-label">预计交货日期</label>
					<div class="layui-input-inline">
						<input name="delivery_date" lay-verify="required" type="text" readonly="" class="layui-input right-select" />
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">备注</label>
					<div class="layui-input-block" style="margin-left:115px">
						<textarea name="remark" class="layui-textarea"></textarea>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="submit_order">添加订单</button>
						<button type="button" id="close_page" class="layui-btn layui-btn-primary">关闭</button>
					</div>
				</div>
			</form>
		</div>
		<div id="select_member" style="display: none; margin: 20px;">
			<div class="search-box">
			<form class="search_form layui-form" lay-filter="member_search_form">
				<div class="layui-inline">
					<label class="layui-form-label">用户名</label>
					<div class="layui-input-inline">
						<input type="text" name="username" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">姓名</label>
					<div class="layui-input-inline">
						<input type="text" name="realname" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">手机</label>
					<div class="layui-input-inline">
						<input type="text" name="phone" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="pack-up"></div>
			</form>
			</div>
			<table class="layui-hide" id="member_list" lay-filter="member_list"></table>
		</div>
		<div id="select_goods" style="display: none; margin: 20px;">
			<div class="search-box">
				<form class="search_form layui-form" lay-filter="select_goods_search_form">
					<div class="layui-inline">
						<label class="layui-form-label">分类</label>
						<div class="layui-input-inline">
							<select name="category_sign1" id="category_search1" lay-verify="category_search1" lay-search>
							</select>
						</div>
						<div class="layui-input-inline">
							<select name="category_sign2" id="category_search2" lay-verify="category_search2" lay-search>
							</select>
						</div>
						<div class="layui-input-inline">
							<select name="category_sign3" id="category_search3" lay-verify="category_search3" lay-search>
							</select>
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">品牌</label>
						<div class="layui-input-inline">
							<select name="brand_sign" id="brand_sign" lay-verify="brand_sign" lay-search>
							</select>
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">商品编号</label>
						<div class="layui-input-inline">
							<input type="text" name="goods_sku" autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">军网编号</label>
						<div class="layui-input-inline">
							<input type="text" name="jun_id" autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">商品名称</label>
						<div class="layui-input-inline">
							<input type="text" name="goods_name" autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">型号</label>
						<div class="layui-input-inline">
							<input type="text" name="goods_model" autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="pack-up"></div>
				</form>
			</div>
			<table class="layui-hide" id="select_goods_list" lay-filter="select_goods_list"></table>
		</div>
		<div id="select_sale_attr" style="margin: 20px; display: none;">
			<form class="layui-form" lay-filter="tpl_select_sale_attr">
			</form>
		</div>
		<div id="shopping" style="margin: 20px; display: none;">
			<form class="layui-form" lay-filter="tpl_shopping" action="{:url('shopping/saveData')}">
				<input type="hidden" name="member_id" value="193" />
				<div class="layui-form-item">
					<label class="layui-form-label">配送地址</label>
					<div class="layui-input-inline" style="width: 200px;">
						<select name="province" lay-filter="province" lay-verify="required" lay-search></select>
					</div>
					<div class="layui-input-inline" style="width: 200px;">
						<select name="city" lay-filter="city" lay-verify="required" lay-search></select>
					</div>
					<div class="layui-input-inline" style="width: 200px;">
						<select name="area" lay-filter="area" lay-verify="required" lay-search></select>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">详细地址</label>
					<div class="layui-input-inline" style="width: 500px;">
						<input type="text" name="street" lay-verify="required" placeholder="请输详细地址" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">收货人</label>
					<div class="layui-input-inline">
						<input name="contacts" lay-verify="required" type="text" class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">联系电话</label>
					<div class="layui-input-inline">
						<input name="phone" id="phone_addr" lay-verify="required|phone|number" type="text" class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item" style="display: none;">
					<label class="layui-form-label"></label>
					<div class="layui-input-inline">
						<input name="is_default" checked="checked" type="checkbox" class="layui-input" title="默认收货地址" />
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="submit_shopping">保存数据</button>
						<button type="reset" class="layui-btn layui-btn-primary">重置</button>
					</div>
				</div>
			</form>
		</div>
		<script>
			var member_list_url = "{:url('staff/ajaxMember')}",
				member_cols = {$member_cols},
				shopping_list_url = "{:url('shopping/ajaxList')}",
				goods_cols = {$goods_cols},
				goods_list_url = "{:url('Goods/ajaxList')}",
				category_select_uri = "{:url('Category/ajaxCategory')}",
				brand_select_uri = "{:url('Brand/ajaxList')}",
				select_goods_cols = {$select_goods_cols},
				member_id = 193;
		</script>
		<script type="text/html" id="goodsToolbar">
		  <div class="layui-btn-container">
		    <a type="button" data-id="add_goods_to_cart" data-title="选择商品" class="layui-btn layui-btn-normal layui-btn-sm tap-nav" lay-event="addGoodsToCart"><i class="layui-icon layui-icon-add-1"></i>选择商品</a>
		  </div>
		</script>
		<script type="text/html" id="goods_tool">
			<div class="layui-btn-group">
				<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="remove" data-title="移除"><i class="layui-icon layui-icon-close"></i></a>
			</div>
		</script>
		<script type="text/html" id="select_goods_tool">
			<div class="layui-btn-group">
				<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="select" data-title="选择"><i class="layui-icon layui-icon-circle"></i></a>
			</div>
		</script>
		<script type="text/html" id="goods_pictureTpl">
			{{# if(d.goods_picture){
				return '<img src="'+d.goods_picture.save_path+'" />';
				}
		}}
		</script>
		<script type="text/html" id="cart_numTpl">
			{{# 
				if(!d.num){
					return '1';
				} else {
					return d.num;
				}
			}}
		</script>
		<script type="text/html" id="sale_attrTpl">
			{{#
				if(d.sale_attr == undefined){
					return '<span>默认属性</span>';
				} else {
					if(d.sale_attr.length == 0){
						return '<span>默认属性</span>';
					} else {
						return '<span class="right-select select-sale-attr">请选择</span>';
					}
				}
			}}
		</script>
		<script src="/static/js/order/order_tpl.js?t=20231013" type="text/javascript" charset="utf-8"></script>
	</body>
</html>